<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>提现列表</title>
	<meta name="decorator" content="default"/>
	<script src="/static/lodop/LodopFuncs.js" type="text/javascript"></script>
	<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0">
		<embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="install_lodop32.exe"></embed>
	</object>
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
        var LODOP; //声明为全局变量
        function prn_preview() {
            CreateFormPage();
            LODOP.PREVIEW();
        };
        function CreateFormPage() {
            var printValue = document.getElementById("printWithdrawListId").innerHTML;
            LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
            LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单一");
            LODOP.SET_PRINT_STYLE("FontSize", 18);
            LODOP.SET_PRINT_STYLE("Bold", 1);
//            LODOP.ADD_PRINT_TEXT(50, 231, 260, 39, "打印页面部分内容");
            LODOP.ADD_PRINT_HTM(88, 200, 800, 600, printValue);
        };
	</script>
	<script type="text/javascript" src="/static/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="/static/jquery/jquery-1.8.3.js"></script>
	<script language="javascript" src="/static/jquery/jquery.jqprint-0.3.js"></script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/order/userOrder/listWithdraw">提现列表</a></li><%--
		<shiro:hasPermission name="cms:comment:edit"><li><a href="${ctx}//order/userOrder/listWithdrawform?id=${comment.id}">评论添加</a></li></shiro:hasPermission> --%>
	</ul>
	<div id="printWithdrawListId">
		<!--startprint1-->
	<form:form modelAttribute="query" id="searchForm" action="${ctx}/order/userOrder/listWithdraw" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>收款单位/用户名：</label>
		<input name="name" maxlength="50" class="input-small" value="${query.name}"/>&nbsp;
		<label>状态：</label>
		<form:radiobutton path="status" value="" />全部
		<form:radiobutton path="status" value="1" />未处理
		<form:radiobutton path="status" value="2" />已处理
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
		开始时间：<input class="Wdate" name="minDate" type="text" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" value='<fmt:formatDate value="${query.minDate}" pattern="yyyy-MM-dd HH:mm:ss"/>' />
		<span>结束时间：<fmt:formatDate value="${query.maxDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-bordered table-condensed">
		<thead><tr><th>收款单位/用户名</th><th>收款开户行</th><th>收款账号</th><th>付款金额</th><th>实际付款金额</th><th nowrap="nowrap">注册手机号</th><th>打印次数</th><th>创建时间</th><th>状态</th></th><th>操作</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="withdraw">
			<tr>
				<td>${withdraw.userName}</td>
				<td><a>${withdraw.bankName}</a></td>
				<td>${withdraw.bankNumber}</td>
				<td>${withdraw.money}</td>
				<td>${withdraw.factMoney}</td>
				<td>${withdraw.phone} </td>
				<td>${withdraw.printTimes} </td>
				<td><fmt:formatDate value="${withdraw.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><c:if test="${withdraw.status==1}"><a href="#"><font color="red">未处理</font></a></c:if><c:if test="${withdraw.status==2}">已处理</c:if></td>
				<td><a href="${ctx}/order/userOrder/withdrawDetail?transactionId=${withdraw.id}">详情</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
		<!--endprint1-->
	<div class="pagination">${page}</div>

	</div>
	<input id="btnPrint" type="button" value="打印预览" onclick="prn_preview()" />
</body>
</html>
